home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
autofx
/
crop.ifx
< prev
next >
Wrap
Text File
|
2004-08-03
|
570b
|
30 lines
/*
* Crop.ifx
* Written by Thomas Krehbiel
*
* Crop to a user-specified size.
*
* Inputs:
* Word(Arg(1),1) = Frame number (1 - N)
* Word(Arg(1),2) = Main filename ("-" if not specified)
* Word(Arg(1),3) = Swap filename ("-" if not specified)
* Word(Arg(1),4) = Sequence number
* Word(Arg(1),5) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_Crop_'
x = GETCLIP(base||'x')
y = GETCLIP(base||'y')
w = GETCLIP(base||'w')
h = GETCLIP(base||'h')
Crop x y w h
EXIT rc